
//0.轮播图接口响应

export type BannerItem = {
  communityId: number;
  jumpUrl: string;
  logoType: string;
  operateId: number;
  operateName: string;
  operateType: number;
  picUrl: string;
  showEndTime: string;
  showStartTime: string;
  showStatus: number;
}
export interface BannerResp {
  code: number;
  msg: string;
  data: BannerItem[];
}

//推荐资讯
export type AuthorInfo = {
  id: string;
  nickname: string;
  photo: string;
  profile: string;
  username: string;
}
export type NewsItem = {
  authorInfo: AuthorInfo;
  communityBaseUrl: any;
  communityCode: any;
  communityHeadPic: any;
  communityId: any;
  communityLogo: any;
  communityName: any;
  coverUrl: string;
  createId: string;
  createName: any;
  createNickName: any;
  createTime: any;
  informationCollectNum: number;
  informationCollections: number;
  informationCommentCount: number;
  informationId: string;
  informationKeywords: any;
  informationLikeCount: any;
  informationLikeNum: number;
  informationMsg: string;
  informationState: number;
  informationTitle: string;
  informationViews: number;
  isSelected: number;
  publishTime: string;
  reason: any;
  updateTime: string;
}
export type NewsData = {
  current: number;
  pages: number;
  records: NewsItem[];
  size: number;
  total: number;
}
export interface HotNewsResp {
  code: number;
  data: NewsData;
  msg: string;
}

//热门活动
export type ActivityItem = {
  atEndTime: string;
  atId: number;
  atName: string;
  atStartTime: string;
  atTemplate: number;
  atType: number;
  atUrl: string;
  buttonText: string;
  communityId: number;
  createTime: string;
  jumpUrl: string;
  location: any;
  sort: number;
  status: number;
}
export interface HotActivityResp {
  code: number;
  data: ActivityItem[];
  msg: string;
}

//最新
export type LabelItem = {
  labelId: string;
  labelName: string;
}

export type NewsListItem = {
  authorInfo: AuthorInfo;
  informationCollectNum: number;
  informationCommentCount: any;
  informationId: string;
  informationLikeNum: number;
  informationMsg: string;
  informationState: number;
  informationTitle: string;
  informationUrl: string;
  informationViews: number;
  isCollect: boolean;
  isLike: boolean;
  isSelected: number;
  labelNameList: LabelItem[];
  publishTime: string;
  resourceType: string;
}
export type  NewsListData = {
  current: number;
  pages: number;
  records: NewsListItem[];
  size: number;
  total: number;
}
export interface NewsListResp {
  code: number;
  data: NewsListData;
  msg: string;
}



